import request from '@/utils/request'

// 查询贴吧里面的帖子列表
export function listTiebaPosts(query) {
  return request({
    url: '/system/TiebaPosts/list',
    method: 'get',
    params: query
  })
}

// 查询贴吧里面的帖子详细
export function getTiebaPosts(id) {
  return request({
    url: '/system/TiebaPosts/' + id,
    method: 'get'
  })
}

// 新增贴吧里面的帖子
export function addTiebaPosts(data) {
  return request({
    url: '/system/TiebaPosts',
    method: 'post',
    data: data
  })
}

// 修改贴吧里面的帖子
export function updateTiebaPosts(data) {
  return request({
    url: '/system/TiebaPosts',
    method: 'put',
    data: data
  })
}

// 删除贴吧里面的帖子
export function delTiebaPosts(id) {
  return request({
    url: '/system/TiebaPosts/' + id,
    method: 'delete'
  })
}
